package com.example.bankend.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author luolinila
 * @date 2025/6/17 16:58
 */
@Data
public class CreateUser {
    @JsonProperty("adminID")
    private Long adminID;
    @JsonProperty("adminName")
    private String adminName;
    @JsonProperty("adminPass")
    private String adminPass;
    @JsonProperty("customerName")
    private String customerName;
    @JsonProperty("PID")
    private String PID;
    @JsonProperty("phone")
    private String phone;
    @JsonProperty("pass")
    private String pass;

    public boolean isTure() {
        return customerName != null && PID != null && phone != null && pass != null;
    }
}
